package com.derek.omshopping.ui.mycart;


import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.derek.omshopping.config.UrlConfig;
import com.derek.omshopping.ui.mine.login.LoginActivity;
import com.derek.omshopping.R;
import com.derek.omshopping.base.BaseFragment;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by asus on 2016/10/17 09 49.
 * 邮箱:763433963@qq.com
 * 该fragment用于实现购物车页面
 */
public class MycartFragment extends BaseFragment {

 @BindView(R.id.wv)
 WebView wv;
    String playUrl ="http://m.ocj.com.cn/cart.jhtml?flag=true";
    @Override
    protected void initData() {
        wv.getSettings().setJavaScriptEnabled(true);//设置webview支持脚本 javaScript
        wv.setWebChromeClient(new WebChromeClient());
        wv.setWebViewClient(new WebViewClient());
        wv.loadUrl(playUrl);
    }

    @Override
    protected void initView() {

    }

    @Override
    public int getLayoutId() {
        return R.layout.fragment_mycart;
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View rootView = super.onCreateView(inflater, container, savedInstanceState);
        ButterKnife.bind(this, rootView);
        return rootView;
    }
}
